Skip to content

Make the crate #![no_std]#79

Merged
shssoichiro merged 2 commits into
rust-av:mainfrom
FreezyLemon:experiment-no-std
Jun 20, 2026
Merged

Make the crate #![no_std]#79
shssoichiro merged 2 commits into
rust-av:mainfrom
FreezyLemon:experiment-no-std

Conversation

@FreezyLemon

Copy link
Copy Markdown
Contributor

https://effective-rust.com/no-std.html says:

So: if your dependencies support it, and the simple transformations above are all that's needed, then consider making library code no_std compatible. When it is possible, it's not much additional work, and it allows for the widest reuse of the library.

Code changes are minimal, we don't need a std feature because nothing will be disabled without it. alloc is definitely required for Frame/Plane/AlignedData but that's still a smaller hurdle than the entire standard library.

println is now off the table for tests but that's not really a big limitation IMHO.

@codecov

codecov Bot commented May 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.40%. Comparing base (b5c3c4c) to head (3884f06).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #79   +/-   ##
=======================================
  Coverage   99.39%   99.40%           
=======================================
  Files           7        7           
  Lines         666      672    +6     
=======================================
+ Hits          662      668    +6     
  Misses          4        4           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shssoichiro

shssoichiro commented Jun 20, 2026

Copy link
Copy Markdown
Member

We probably shouldn't have been using println for tests in the first place tbh

I'll thoroughly review this in the morning and likely merge it.

@shssoichiro shssoichiro merged commit 86e9c20 into rust-av:main Jun 20, 2026
11 checks passed
@FreezyLemon FreezyLemon deleted the experiment-no-std branch June 20, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants